package com.uplift.mgt.building.dao;

import com.uplift.mgt.building.model.BuildingModel;
import com.uplift.mgt.building.model.RealtyEarnings;
import com.uplift.mgt.building.model.RealtyErModel;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RealtyEarningsMapper {
	public List<Map<String, Object>> selectRealtyEarnings(RealtyEarnings realtyEarnings);

	public List<Map<String, Object>> countEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 新增收益信息
	 * @param realtyEarnings
	 * @return
	 */
	public int insertRealtyEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 更新收益信息
	 * @param realtyEarnings
	 * @return
	 */
	public int updateRealtyEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 删除房间收益情况
	 * @param realtyErModel
	 * @return
	 */
	public int deleteRoomsEarnings(RealtyErModel realtyErModel);

	/**
	 * 插入房间收益情况
	 * @param realtyErModel
	 * @return
	 */
	public int insertRoomsEarnings(RealtyErModel realtyErModel);

	/**
	 * 查询房间收益列表
	 * @param realtyErModel
	 * @return
	 */
	public List<Map<String, Object>> selectRoomsEarnings(RealtyErModel realtyErModel);
}
